package com.demo2.one1.controller;

import com.demo2.one1.pojo.ActivityDO;
import com.demo2.one1.pojo.CommodityDO;
import com.demo2.one1.pojo.StockDO;

/**
 * @author SunChangSheng
 * @apiNote
 * @since 2021/12/23 14:43
 */
public class TestController {
    public static void main(String[] args) {
        //CommodityDO commodityDO = new TestController().getInfo();
    }

    /**
     * 获取商品信息
     * @return
     */
    public CommodityDO getInfo() {
        CommodityDO commodityDO = new CommodityDO();
        commodityDO.setId(1);
        commodityDO.setName("华为手机");
        commodityDO.setStock(100);
        return commodityDO;
    }



}
